﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace DAL
{
    public class tbPhieuGH
    {

        private int sopgh;

        public int Sopgh
        {
            get { return sopgh; }
            set { sopgh = value; }
        }
        private int sohd;

        public int Sohd
        {
            get { return sohd; }
            set { sohd = value; }
        }
        private string manv;

        public string Manv
        {
            get { return manv; }
            set { manv = value; }
        }
        private string ngaygiao;

        public string Ngaygiao
        {
            get { return ngaygiao; }
            set { ngaygiao = value; }
        }
        DBAccess db = new DBAccess();

        public bool dalThemPGH()
        {
            bool res = false;
            string query = "ThemPGH";
            SqlParameter[] param = new SqlParameter[3];
            param[0] = new SqlParameter("@SoHD", Sohd);
            param[1] = new SqlParameter("@MaNV", Manv);
            param[2] = new SqlParameter("@NgayGiao", Ngaygiao);
            res = db.DoExcecute(query, CommandType.StoredProcedure, param);
            return res;
        }
    }
}
